package com.ruoyi.energize.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * energize对象 cash_order
 *
 * @author ruoyi
 * @date 2023-05-24
 */
public class CashOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String oid;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payWay;

    /** 定单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "定单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 总数 */
    @Excel(name = "总数")
    private Integer totalCount;

    /** 找零 */
    @Excel(name = "找零")
    private BigDecimal zhaoling;

    /** 实收 */
    @Excel(name = "实收")
    private BigDecimal shishou;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalPrice;

    /** 订单实际总价 */
    @Excel(name = "订单实际总价")
    private BigDecimal realTotalPrice;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String deviceId;

    /** 子设备ID */
    @Excel(name = "子设备ID")
    private String deviceIdExt;

    /** 商店ID */
    @Excel(name = "商店ID")
    private Integer cid;

    /** 预留手机号 */
    @Excel(name = "预留手机号")
    private Long billRequestPhone;

    /** 是否索要小票0否1是 */
    @Excel(name = "是否索要小票0否1是")
    private Integer billRequest;

    /** 分区ID */
    @Excel(name = "分区ID")
    private Integer fid;

    /** 红包USE_ID */
    @Excel(name = "红包USE_ID")
    private Integer redId;

    /** 红包金额 */
    @Excel(name = "红包金额")
    private BigDecimal redPrice;

    /** 会员支付0否其它是 */
    @Excel(name = "会员支付0否其它是")
    private String vid;

    /** 平台的会员id */
    @Excel(name = "平台的会员id")
    private String platformVid;

    /** 会员余额支付金额 */
    @Excel(name = "会员余额支付金额")
    private BigDecimal vipRemainPay;

    /** 会员现金支付金额 */
    @Excel(name = "会员现金支付金额")
    private BigDecimal vipExtendPay;

    /** 满活动ID */
    @Excel(name = "满活动ID")
    private Integer accordId;

    /** 满活动优惠金额 */
    @Excel(name = "满活动优惠金额")
    private BigDecimal accordPrice;

    /** 退货订单ID */
    @Excel(name = "退货订单ID")
    private Long cancelOid;

    /** 退款时关联的主订单id。 cancel_oid弃用 */
    @Excel(name = "退款时关联的主订单id。 cancel_oid弃用")
    private Long mainOid;

    /** 收银员 */
    @Excel(name = "收银员")
    private String casher;

    /** 状态，0正常1异常已收银 */
    @Excel(name = "状态，0正常1异常已收银")
    private Integer state;

    /** 抵用券ID */
    @Excel(name = "抵用券ID")
    private Integer couponId;

    /** 抵用券金额 */
    @Excel(name = "抵用券金额")
    private BigDecimal couponPrice;

    /** 抺零ID */
    @Excel(name = "抺零ID")
    private Integer oddId;

    /** 订单利润 */
    @Excel(name = "订单利润")
    private BigDecimal profit;

    /** 门店ID */
    @Excel(name = "门店ID")
    private String storeId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String manageUnitUuid;

    /** 订单类型，1-收银，2-外卖 */
    @Excel(name = "订单类型，1-收银，2-外卖")
    private Integer orderType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOid(String oid)
    {
        this.oid = oid;
    }

    public String getOid()
    {
        return oid;
    }
    public void setPayWay(String payWay)
    {
        this.payWay = payWay;
    }

    public String getPayWay()
    {
        return payWay;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setTotalCount(Integer totalCount)
    {
        this.totalCount = totalCount;
    }

    public Integer getTotalCount()
    {
        return totalCount;
    }
    public void setZhaoling(BigDecimal zhaoling)
    {
        this.zhaoling = zhaoling;
    }

    public BigDecimal getZhaoling()
    {
        return zhaoling;
    }
    public void setShishou(BigDecimal shishou)
    {
        this.shishou = shishou;
    }

    public BigDecimal getShishou()
    {
        return shishou;
    }
    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }
    public void setRealTotalPrice(BigDecimal realTotalPrice)
    {
        this.realTotalPrice = realTotalPrice;
    }

    public BigDecimal getRealTotalPrice()
    {
        return realTotalPrice;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }
    public void setDeviceIdExt(String deviceIdExt)
    {
        this.deviceIdExt = deviceIdExt;
    }

    public String getDeviceIdExt()
    {
        return deviceIdExt;
    }
    public void setCid(Integer cid)
    {
        this.cid = cid;
    }

    public Integer getCid()
    {
        return cid;
    }
    public void setBillRequestPhone(Long billRequestPhone)
    {
        this.billRequestPhone = billRequestPhone;
    }

    public Long getBillRequestPhone()
    {
        return billRequestPhone;
    }
    public void setBillRequest(Integer billRequest)
    {
        this.billRequest = billRequest;
    }

    public Integer getBillRequest()
    {
        return billRequest;
    }
    public void setFid(Integer fid)
    {
        this.fid = fid;
    }

    public Integer getFid()
    {
        return fid;
    }
    public void setRedId(Integer redId)
    {
        this.redId = redId;
    }

    public Integer getRedId()
    {
        return redId;
    }
    public void setRedPrice(BigDecimal redPrice)
    {
        this.redPrice = redPrice;
    }

    public BigDecimal getRedPrice()
    {
        return redPrice;
    }
    public void setVid(String vid)
    {
        this.vid = vid;
    }

    public String getVid()
    {
        return vid;
    }
    public void setPlatformVid(String platformVid)
    {
        this.platformVid = platformVid;
    }

    public String getPlatformVid()
    {
        return platformVid;
    }
    public void setVipRemainPay(BigDecimal vipRemainPay)
    {
        this.vipRemainPay = vipRemainPay;
    }

    public BigDecimal getVipRemainPay()
    {
        return vipRemainPay;
    }
    public void setVipExtendPay(BigDecimal vipExtendPay)
    {
        this.vipExtendPay = vipExtendPay;
    }

    public BigDecimal getVipExtendPay()
    {
        return vipExtendPay;
    }
    public void setAccordId(Integer accordId)
    {
        this.accordId = accordId;
    }

    public Integer getAccordId()
    {
        return accordId;
    }
    public void setAccordPrice(BigDecimal accordPrice)
    {
        this.accordPrice = accordPrice;
    }

    public BigDecimal getAccordPrice()
    {
        return accordPrice;
    }
    public void setCancelOid(Long cancelOid)
    {
        this.cancelOid = cancelOid;
    }

    public Long getCancelOid()
    {
        return cancelOid;
    }
    public void setMainOid(Long mainOid)
    {
        this.mainOid = mainOid;
    }

    public Long getMainOid()
    {
        return mainOid;
    }
    public void setCasher(String casher)
    {
        this.casher = casher;
    }

    public String getCasher()
    {
        return casher;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setCouponId(Integer couponId)
    {
        this.couponId = couponId;
    }

    public Integer getCouponId()
    {
        return couponId;
    }
    public void setCouponPrice(BigDecimal couponPrice)
    {
        this.couponPrice = couponPrice;
    }

    public BigDecimal getCouponPrice()
    {
        return couponPrice;
    }
    public void setOddId(Integer oddId)
    {
        this.oddId = oddId;
    }

    public Integer getOddId()
    {
        return oddId;
    }
    public void setProfit(BigDecimal profit)
    {
        this.profit = profit;
    }

    public BigDecimal getProfit()
    {
        return profit;
    }
    public void setStoreId(String storeId)
    {
        this.storeId = storeId;
    }

    public String getStoreId()
    {
        return storeId;
    }
    public void setManageUnitUuid(String manageUnitUuid)
    {
        this.manageUnitUuid = manageUnitUuid;
    }

    public String getManageUnitUuid()
    {
        return manageUnitUuid;
    }
    public void setOrderType(Integer orderType)
    {
        this.orderType = orderType;
    }

    public Integer getOrderType()
    {
        return orderType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("oid", getOid())
            .append("payWay", getPayWay())
            .append("orderTime", getOrderTime())
            .append("updateTime", getUpdateTime())
            .append("totalCount", getTotalCount())
            .append("zhaoling", getZhaoling())
            .append("shishou", getShishou())
            .append("totalPrice", getTotalPrice())
            .append("realTotalPrice", getRealTotalPrice())
            .append("deviceId", getDeviceId())
            .append("deviceIdExt", getDeviceIdExt())
            .append("cid", getCid())
            .append("billRequestPhone", getBillRequestPhone())
            .append("billRequest", getBillRequest())
            .append("fid", getFid())
            .append("redId", getRedId())
            .append("redPrice", getRedPrice())
            .append("vid", getVid())
            .append("platformVid", getPlatformVid())
            .append("vipRemainPay", getVipRemainPay())
            .append("vipExtendPay", getVipExtendPay())
            .append("accordId", getAccordId())
            .append("accordPrice", getAccordPrice())
            .append("cancelOid", getCancelOid())
            .append("mainOid", getMainOid())
            .append("casher", getCasher())
            .append("state", getState())
            .append("couponId", getCouponId())
            .append("couponPrice", getCouponPrice())
            .append("oddId", getOddId())
            .append("profit", getProfit())
            .append("storeId", getStoreId())
            .append("manageUnitUuid", getManageUnitUuid())
            .append("orderType", getOrderType())
            .toString();
    }
}
